-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (46 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
50 lines (46 loc) · 1.11 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
# start this with docker compose up -d
version: '3.8'
services:
db:
container_name: shadow-brreg
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5433:5432'
volumes:
- shadow-brreg-database-volume:/var/lib/postgresql/data
networks:
- urbalurba-network
app:
container_name: shadow-app
image: node:lts-alpine
depends_on:
- db
environment:
- DATABASE_HOST=db
- DATABASE_PORT=5432
- DATABASE_USER=postgres
- DATABASE_PASSWORD=postgres
- DATABASE_NAME=importdata
volumes:
- app:/usr/src/app
command:
[
"sh",
"-c",
"wget -O shadow-init.sh https://raw.githubusercontent.com/terchris/shadow-brreg/main/shadow-init_json.sh && chmod +x shadow-init.sh && ./shadow-init.sh"
]
networks:
- urbalurba-network
volumes:
shadow-brreg-database-volume:
driver: local
app:
driver: local
networks:
urbalurba-network:
external: true
# to connect to the container: docker exec -ti shadow-app sh