-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
68 lines (66 loc) · 1.32 KB
/
docker-compose-dev.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
version: "3.8"
services:
mongo:
image: mongo:latest
container_name: mongo_dev
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
networks:
- go-inv
mongo_seed:
container_name: mongo_seed
build:
context: ./mongodb_seed
dockerfile: Dockerfile-dev
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
networks:
- go-inv
links:
- mongo
depends_on:
- mongo
server:
build:
context: ./server
dockerfile: Dockerfile-dev
container_name: go-inv-server
env_file:
- ./goInv-dev.env
volumes:
- "./server:/go"
# ports:
# - "8082:8080"
networks:
- go-inv
stdin_open: true
entrypoint: ["go", "run", "main"]
web:
build:
context: ./web
dockerfile: Dockerfile-dev
container_name: go-inv-site
volumes:
- "./web:/node"
# ports:
# - "8083:4200"
stdin_open: true
networks:
- go-inv
entrypoint: ["npm", "run", "docker-dev"]
nginx:
image: nginx:latest
container_name: go-inv-nginx
volumes:
- "./nginx_templates:/etc/nginx/templates"
ports:
- 80:80
depends_on:
- web
- server
networks:
- go-inv
networks:
go-inv: