-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (63 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
67 lines (63 loc) · 1.28 KB
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
version: "3.8"
services:
client:
container_name: gamenight-client
build:
context: ./client
dockerfile: dev.dockerfile
stdin_open: true
env_file:
- ./client/.docker.env
volumes:
- ./client:/app
ports:
- 4000:4000
networks:
- frontend
server:
container_name: gamenight-server
build:
context: ./server
dockerfile: dev.dockerfile
volumes:
- ./server:/app
- $GOPATH/pkg/mod/cache:/go/pkg/mod/cache
working_dir: /app
env_file:
- ./server/.docker.env
ports:
- 4001:4001
networks:
- frontend
- backend
mongo:
container_name: mongo
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: developmentpassword
ports:
- 27017:27017
networks:
- backend
logging:
driver: none
mongo-express:
container_name: mongo_express
image: mongo-express
ports:
- 4002:4002
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: admin
ME_CONFIG_MONGODB_ADMINPASSWORD: developmentpassword
VCAP_APP_PORT: 4002
networks:
- frontend
- backend
logging:
driver: none
networks:
frontend:
driver: bridge
backend:
driver: bridge