-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (58 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
59 lines (58 loc) · 1.25 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
version: '3'
services:
db:
image: 'postgis/postgis:12-3.0'
env_file: .env
environment:
POSTGRES_PASSWORD: 'postgres'
POSTGRES_USER: 'postgres'
POSTGRES_DB: 'postgres'
ports:
- '5432:5432'
restart: always
volumes:
- db:/var/lib/postgresql/data
backend:
command: '/bin/bash -c "chmod +x /usr/src/app/docker-entrypoint.sh && /usr/src/app/docker-entrypoint.sh"'
env_file: .env
environment:
DB_NAME: 'postgres'
DB_PASS: 'postgres'
DB_PORT: '5432'
DB_SERVICE: 'postgres'
DB_USER: 'postgres'
DEBUG: 'false'
GUNICORN_TIMEOUT: '900'
expose:
- '8000'
build: ./backend
links:
- 'db:postgres'
ports:
- '5001:8000'
- '5000:9090'
restart: always
volumes:
- ./backend:/usr/src/app
- public:/usr/src/app/public
- static:/usr/src/app/static
frontend:
environment:
GRAPHQL_HOST: 'backend'
GRAPHQL_PORT: '9090'
HOST: '0.0.0.0'
PORT: '3000'
image: 'node:12'
working_dir: /home/node/app
volumes:
- ./frontend:/home/node/app
command: "./entrypoint.sh"
links:
- backend
ports:
- '7171:3000'
restart: always
volumes:
db:
public:
static: