-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 1.1 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
services:
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx.dev.conf:/etc/nginx/nginx.conf:ro
depends_on:
- frontend
- api
networks:
- vpc_local
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
volumes:
- ./frontend/src/:/tournois-tt/frontend/src
- ./frontend/public/:/tournois-tt/frontend/public
- ./frontend/package.json/:/tournois-tt/frontend/package.json
- ./frontend/package-lock.json/:/tournois-tt/frontend/package-lock.json
- ./frontend/tsconfig.json/:/tournois-tt/frontend/tsconfig.json
- ./frontend/webpack.dev.js/:/tournois-tt/frontend/webpack.dev.js
expose:
- 3000
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
depends_on:
- api
networks:
- vpc_local
api:
build:
context: ./api
dockerfile: Dockerfile.dev
volumes:
- ./api/:/go/src/tournois-tt/api
expose:
- 8080
environment:
- GIN_MODE=debug
networks:
- vpc_local
networks:
vpc_local:
driver: bridge