-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
61 lines (59 loc) · 1.21 KB
/
docker-compose.yaml
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
version: '3'
services:
db:
image: mysql:8.0
container_name: db
tty: true
restart: unless-stopped
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: ids
MYSQL_ROOT_PASSWORD: ids
MYSQL_USER: ids
MYSQL_PASSWORD: ids
networks:
- ids
api:
image: adhp/build-tools:main-latest
container_name: api
depends_on:
- db
tty: true
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- .:/work
command: bash -c 'cd /work && go run cmd/api/main.go server'
networks:
- ids
web:
image: adhp/build-tools:main-latest
container_name: web
depends_on:
- db
tty: true
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./frontend:/work
command: bash -c 'cd /work && bash -c "yarn && npx vite --clearScreen=false --host 0.0.0.0 --port 8080"'
networks:
- ids
#bootstrap:
#depends_on:
#- db
#image: adhp/build-tools:main-latest
#container_name: bootstrap
#tty: true
#restart: no
#volumes:
#- .:/work
#command: bash -c 'cd /work && go run tools/bootstrap/main.go'
#networks:
#- ids
networks:
ids:
driver: bridge