-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yml
43 lines (40 loc) · 1.07 KB
/
docker-compose.prod.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
version: '3.7'
services:
db:
image: postgis/postgis:14-3.2-alpine
container_name: postgis
ports:
- 5432:5432
environment:
- POSTGRES_DB
- POSTGRES_USER
- POSTGRES_PASSWORD
- PGDATA=/var/lib/postgresql/data/db
volumes:
- ./data:/var/lib/postgresql/data
# comment/remove bellow volumes after seeding is done
- ./apps/covis-service/seed.sql:/var/lib/postgresql/data/seed.sql
- ./apps/covis-service/src/assets/data.csv.gz:/var/lib/postgresql/data/data.csv.gz
command: postgres -c max_wal_senders=0 -c max_wal_size=10240 -c wal_level=minimal -c random_page_cost=1.1
restart: on-failure
service:
image: covis-service
container_name: covis-service
depends_on:
- db
environment:
- POSTGRES_DB
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_HOST=db
ports:
- 3000:3000
restart: on-failure
app:
image: covis-app
container_name: covis-app
environment:
- BACKEND_URL=http://service:3000
ports:
- 80:80
restart: on-failure