forked from HiSPARC/publicdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (39 loc) · 873 Bytes
/
docker-compose.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
services:
postgres:
image: 'postgres:14-alpine'
restart: unless-stopped
environment:
POSTGRES_DB: publicdb
POSTGRES_USER: hisparc
POSTGRES_PASSWORD: postgres
volumes:
- 'pgdata:/var/lib/postgresql/data'
ports:
- '54321:5432'
publicdb:
image: publicdb
build: .
restart: unless-stopped
environment:
DJANGO_SETTINGS_MODULE: publicdb.settings_docker
volumes:
- '.:/base:ro'
ports:
- '8000:8000'
working_dir: '/base'
command: './manage.py runserver 0:8000'
stdin_open: true
tty: true
depends_on:
- postgres
datastore:
image: 'python:3.10'
restart: unless-stopped
volumes:
- './scripts:/base:ro'
ports:
- '8002:8002'
working_dir: '/base'
command: 'python fake-datastore-xmlrpc-server.py'
volumes:
pgdata: