-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml.example
More file actions
54 lines (53 loc) · 1.29 KB
/
Copy pathdocker-compose.yml.example
File metadata and controls
54 lines (53 loc) · 1.29 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
version: "3.9"
services:
db:
image: postgres
volumes:
- /var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
api:
build:
context: ./atoasap_api/
dockerfile: Dockerfile
command: gunicorn ratoapi.wsgi:application --bind 0.0.0.0:8000 --reload
volumes:
- ./atoasap_api:/code
ports:
- "8000:8000"
environment:
- POSTGRES_DB_NAME=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB_HOST=db
- POSTGRES_DB_PORT=5432
restart: always
depends_on:
db:
condition: service_healthy
ui:
build:
context: ./atoasap_ui/
dockerfile: Dockerfile
volumes:
- ./atoasap_ui/assets:/app/assets
- ./atoasap_ui/cypress:/app/cypress
- ./atoasap_ui/public:/app/public
- ./atoasap_ui/src:/app/src
- ./atoasap_ui/sass:/app/sass
ports:
- '3001:3000'
environment:
- NODE_ENV=development
- REACT_APP_API_ENDPOINT=http://localhost:8000
- REACT_APP_ENVIRONMENT=development
- WDS_SOCKET_PORT=0