-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (51 loc) · 1.14 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
52
53
# For the sake of security, please change database stuff when actually running
version: "3.7"
services:
app:
container_name: app
image: miriondb
build:
context: .
dockerfile: Dockerfile
command: ["mirion"]
ports:
- 5500:5500
environment:
DATABASE_URL: postgresql://miriondb:kotohoops@db/theater
ASSETS_HOST: theater
ASSETS_PORT: 5501
depends_on:
- "db"
db:
image: postgres:13.4-alpine
volumes:
- theater-db:/var/lib/postgresql/data
expose:
- 5432
environment:
POSTGRES_HOST: localhost
POSTGRES_USER: miriondb
POSTGRES_PASSWORD: kotohoops
POSTGRES_DB: theater
theater:
container_name: theater
image: miriondb
volumes:
- theater-cache:/app/theater/cache/
build:
context: .
dockerfile: Dockerfile
command: ["theater"]
ports:
- 8000:8000
expose:
- 5501
environment:
ROCKET_DATABASES: '{theater={url="postgresql://miriondb:kotohoops@db/theater"}}'
ASSETS_HOST: "0.0.0.0"
ASSETS_PORT: 5501
depends_on:
- "db"
volumes:
theater-db:
theater-cache: