-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (62 loc) · 1.55 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '2.1'
services:
mysql:
build: ./db_docker
environment:
# - MYSQL_ALLOW_EMPTY_PASSWORD=yes
MYSQL_ROOT_PASSWORD: ''
MYSQL_DATABASE: goodreads
healthcheck:
test: "exit 0"
web:
build: .
depends_on:
mysql:
condition: service_healthy
ports:
- 3002:3002
environment:
WAIT_HOSTS: mysql:3306
# version: "3"
# services:
# db:
# image: mysql
# environment:
# MYSQL_ROOT_PASSWORD: null
# MYSQL_DATABASE: 'goodreads'
# ports:
# - "3306:3306"
# web:
# build: .
# depends_on:
# - mysql
# ports:
# - "3002:3002"
#version: '2'
#services:
# mysql:
# container_name: flask_mysql
# restart: always
#image: mysql:latest
#environment:
# MYSQL_ROOT_PASSWORD: 'test_pass' # TODO: Change this
#MYSQL_USER: 'test'
#MYSQL_PASS: 'pass'
#volumes:
# - my-datavolume:/var/lib/mysql
#volumes:
# my-datavolume:
#mysqldb:
# image: mysql
# container_name: ${MYSQL_HOST}
# restart: always
# environment:
# - MYSQL_DATABASE=${MYSQL_DATABASE}
# - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
# - MYSQL_USER=${MYSQL_USER}
# - MYSQL_PASSWORD=${MYSQL_PASSWORD}
# ports:
# - "3306:3306"
# volumes:
# - "./data/db/mysql:/var/lib/mysql"
#https://stackoverflow.com/questions/47949221/separate-mysql-docker-container