-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
66 lines (59 loc) · 1.11 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
54
55
56
57
58
59
60
61
62
63
64
65
66
version: "3.9"
x-web-app: &commun-web-app
image: phx_solid
depends_on:
- db
environment:
- RELEASE_DISTRIBUTION=sname
env_file:
- .env-docker
networks:
- mynet
volumes:
pg-data:
networks:
mynet:
services:
db:
image: postgres:15.3-bullseye
env_file:
- .env-docker
restart: always
networks:
- mynet
volumes:
- pg-data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro
ports:
- "5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 10s
livebook:
image: ghcr.io/livebook-dev/livebook
networks:
- mynet
depends_on:
- db
environment:
- MIX_ENV=prod
- LIVEBOOK_DISTRIBUTION=sname
- LIVEBOOK_COOKIE=supersecret
- LIVEBOOK_PASSWORD=securesecret
hostname: livebook
volumes:
- ./data:/data/
ports:
- "8080:8080"
- "8081:8081"
app0:
<<: *commun-web-app
hostname: app0
ports:
- "4000:4000"
app1:
<<: *commun-web-app
hostname: app1
ports:
- "4001:4000"