-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (46 loc) · 892 Bytes
/
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
version: "3.9"
services:
app:
image: gotodo
container_name: app
build:
args:
- target=dev
environment:
TODO_ENV: dev
PORT: 8080
DB_HOST: db
DB_PORT: 3306
DB_USER: todo
DB_PASSWORD: todo
DB_DATABASE: todo
REDIS_HOST: redis
REDIS_PORT: 6379
volumes:
- .:/app
ports:
- "18000:8080"
depends_on:
- "db"
- "redis"
db:
image: mysql:8.0.29
platform: linux/amd64
container_name: db
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_USER: todo
MYSQL_PASSWORD: todo
MYSQL_DATABASE: todo
volumes:
- db-data:/var/lib/mysql
- $PWD/_tools/mysql/conf.d:/etc/mysql/conf.d:cached
ports:
- "33306:3306"
redis:
image: "redis:latest"
container_name: redis
ports:
- "36379:6379"
volumes:
db-data: