-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose-test.yml
67 lines (63 loc) · 1.39 KB
/
docker-compose-test.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:
container_name: backend
build:
context: .
dockerfile: ./backend/Dockerfile
ports:
- "5000:5000"
depends_on:
- db
environment:
CLIENT_URL: http://localhost:3000
DATABASE_URL: postgres://user:password@db/db
# GITHUB_CALLBACK_URL: /auth/github/callback
NODE_ENV: development
PORT: 5000
volumes:
- ./backend:/usr/app
- /usr/app/node_modules
- ./types:/usr/types
networks:
- server-side
db:
image: postgres
container_name: db
restart: always
environment:
- POSTGRES_DB=db
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
networks:
- server-side
ports:
- 5432:5432
volumes:
- db-data:/var/lib/postgresql/data
- ./docker_postgres_init_testdb.sql:/docker-entrypoint-initdb.d/docker_postgres_init_testdb.sql
# frontend:
# container_name: frontend
# build:
# context: .
# dockerfile: ./frontend/Dockerfile
# ports:
# - "3000:3000"
# depends_on:
# - backend
# environment:
# NODE_ENV: development
# PORT: 3000
# volumes:
# - ./frontend:/usr/app
# - /usr/app/node_modules
# - ./types:/usr/types
# networks:
# - server-side
networks:
# client-side: {}
server-side: {}
volumes:
backend: {}
db-data: {}
pgadmin-data: {}