forked from MUnique/OpenMU
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 1.03 KB
/
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
44
45
46
47
48
49
50
51
# Docker compose for postgres and MUnique OpenMU
version: '3'
services:
# Deploy MUnique OpenMU from docker hub
munique:
image: munique/openmu
container_name: munique
restart: unless-stopped
tty: true
ports:
- "1234:1234"
- "55901:55901"
- "55902:55902"
- "55903:55903"
- "44405:44405"
- "55980:55980"
environment:
SERVICE_NAME: munique
SERVICE_TAGS: dev
DB_HOST: database
working_dir: /app/
links:
- database
networks:
- munique-network
depends_on:
- database
# Deploy postgres database from docker hub
database:
image: postgres
restart: always
container_name: database
environment:
POSTGRES_PASSWORD: admin
POSTGRES_DB: openmu
POSTGRES_USER: postgres
ports:
- "5432:5432" #acess outside the container
networks:
- munique-network
volumes:
- dbdata:/var/lib/postgresql/data #store data on volume
networks:
munique-network:
driver: bridge
volumes:
dbdata: