You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
949 B

4 months ago
version: "3"
services:
mysql:
image: mysql:8
command: mysqld --character-set-server=utf8mb4
restart: always
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: product
volumes:
- ./volumes/mysql:/var/lib/mysql
ports:
- '43306:3306'
# docker exec -it backend-mysql-1 mysql -psecret
redis:
image: redis:7
restart: always
ports:
- '46379:6379'
volumes:
- ./volumes/redis:/data
#volumes:
# mysql:
# redis:
# web:
# build:
# context: ./web
# dockerfile: ./Dockerfile
# restart: always
# ports:
# - '48080:8080'
# depends_on:
# - api
# command: [ 'nginx-debug', '-g', 'daemon off;' ]
#
# api:
# build:
# context: ./api
# dockerfile: ./Dockerfile
# restart: always
# ports:
# - '48880:8880'
# - '48890:8890'
# depends_on:
# - mysql
# - redis
# links:
# - mysql
# - redis