-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (62 loc) · 1.45 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
services:
api-gateway:
container_name: api-gateway
build:
context: .
dockerfile: "./api-gateway/Dockerfile"
image: mitchthebaker/api-gateway:latest
env_file:
- ./api-gateway/.env
depends_on:
- server-db
ports:
- "3001:3001"
volumes:
- ./api-gateway/:/opt/app
- /opt/app/node_modules
- /var/run/docker.sock:/var/run/docker.sock
server-db:
container_name: server-db
image: postgres
environment:
POSTGRES_DB: db
POSTGRES_USER: admin
POSTGRES_PASSWORD: secret
ports:
- "3101:5432"
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: secret
PGADMIN_LISTEN_PORT: 80
ports:
- "3201:80"
client-app:
container_name: client-app
build:
context: .
dockerfile: "./client-app/Dockerfile"
image: mitchthebaker/client-app:latest
depends_on:
- api-gateway
ports:
- "3000:3000"
volumes:
- ./client-app/:/opt/app
- /opt/app/node_modules
e2e-tests:
container_name: e2e-tests
command: npm run test
build:
context: .
dockerfile: "./e2e-tests/Dockerfile"
image: mitchthebaker/e2e-tests:latest
depends_on:
- api-gateway
- server-db
- client-app
volumes:
- ./e2e-tests/:/opt/app
- /opt/app/node_modules