-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (67 loc) · 1.37 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
version: "3"
services:
backend:
build:
context: ./server
dockerfile: Dockerfile
command: npm start
volumes:
- ./server:/usr/src/app/server
depends_on:
- postgres
ports:
- "4001:4001"
client:
build:
context: ./client
dockerfile: Dockerfile
command: npm start
volumes:
- ./client:/usr/src/app/client
depends_on:
- backend
ports:
- "3000:3000"
postgres:
image: postgres
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATA=/data/postgres
logging:
driver: "none"
ports:
- '5438:5432'
volumes:
- postgres:/data/postgres
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
restart: always
logging:
driver: "none"
depends_on:
- postgres
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
GUNICORN_ACCESS_LOGFILE: "/tmp/log.txt"
ports:
- "5050:80"
api_test:
build:
context: ./api_test
dockerfile: Dockerfile
command: npm test
volumes:
- ./api_test:/usr/src/app/api_test
depends_on:
- backend
ports:
- "4002:4002"
volumes:
server:
postgres:
api_test:
client: