-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathci.docker-compose.yml
55 lines (54 loc) · 1 KB
/
ci.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
services:
app:
image: "ghcr.io/marcoshuck/todo/app:latest"
build:
context: ../..
dockerfile: build/app.Dockerfile
container_name: app
ports:
- "3030:3030"
- "3031:3031"
restart: unless-stopped
env_file:
- .env.ci
networks:
- transport
- persistence
depends_on:
- db
gateway:
image: "ghcr.io/marcoshuck/todo/gateway:latest"
build:
context: ../..
dockerfile: build/gateway.Dockerfile
container_name: gateway
ports:
- "8080:8080"
restart: unless-stopped
env_file:
- .env.ci
environment:
- APPLICATION_PORT=8080
networks:
- transport
depends_on:
- app
db:
image: mysql:8
container_name: db
ports:
- "3306:3306"
restart: unless-stopped
env_file:
- .env.ci
volumes:
- db_data:/var/lib/mysql
networks:
- persistence
networks:
transport:
name: "transport"
persistence:
name: "persistence"
volumes:
db_data: