-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
59 lines (54 loc) · 1.4 KB
/
docker-compose.yaml
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.9'
services:
server:
container_name: backend
build: ./server
ports:
- "5000:5000"
restart: on-failure
environment:
- DATABASE_URI=postgresql://postgres:postgres@fix_it_now_db:5432/postgres
- CDN_URL=https://symmetrical-space-happiness-7vv9xq45jx69fwxjg-4000.app.github.dev/
- JWT_SECRET_KEY=ijcicjh;IHW;OIH:oihaoih
volumes:
- ./server:/server
command: flask run --host=0.0.0.0 --port=5000
depends_on:
- fix_it_now_db
cdn:
container_name: cdn
build: ./cdn
ports:
- "4000:4000"
restart: on-failure
volumes:
- ./server:/server
command: flask run --host=0.0.0.0 --port=4000
depends_on:
- server
fix_it_now_db:
container_name: fix_it_now_db
image: postgres:12
restart: "on-failure"
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
volumes:
- pgdata:/var/lib/postgresql/data
client:
container_name: client
build:
context: ./client
args:
REACT_APP_SERVER_URL: https://symmetrical-space-happiness-7vv9xq45jx69fwxjg-5000.app.github.dev/api/ # replace to actual
restart: on-failure
ports:
- "3000:3000"
command: serve -s build
depends_on:
- server
volumes:
pgdata: {}