-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (40 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
42 lines (40 loc) · 1.02 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
version: "3.8"
services:
app:
container_name: "upphandling-api"
image: upphandling.app/api
command: npm run dev
ports:
- "3000:3000"
networks:
- nodenet
restart: unless-stopped
security_opt:
- no-new-privileges:true
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- .:/home/node/app
environment:
- DATABASE_URL=postgres://postgres:${pgpass}@upphandling-postgres:5432/postgres
- ROARING_KEY=${roaring_key}
- ROARING_SECRET=${roaring_secret}
postgres:
container_name: "upphandling-postgres"
image: "postgres:alpine"
ports:
- "5432:5432"
networks:
- nodenet
restart: unless-stopped
security_opt:
- no-new-privileges:true
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- $PWD/pg-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=${pgpass}
networks:
nodenet:
name: nodenet