-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
51 lines (47 loc) · 1.14 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
version: '3'
services:
postgres:
image: postgres
ports:
- 5432:5432
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
- POSTGRES_DB=acornserver
volumes:
- postgres-data:/var/lib/postgresql/data # default postgres directory
profiles: ["production", "development"]
pgadmin:
image: dpage/pgadmin4
ports:
- 8001:80
environment:
- PGADMIN_DEFAULT_PASSWORD=password
volumes:
- pgadmin-data:/var/lib/pgadmin # default pgadmin directory
depends_on:
- postgres
profiles: ["production", "development"]
acornserver:
image: acornserver
ports:
- 8000:8000
environment:
- POSTGRES_NAME=acornserver
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
volumes:
- acorn-data:/usr/src/acornserver/media # directory for user-uploaded files
depends_on:
- postgres
profiles: ["production"]
volumes:
postgres-data:
driver: local
pgadmin-data:
driver: local
acorn-data:
driver: local