-
Notifications
You must be signed in to change notification settings - Fork 189
/
Copy pathdocker-compose.yml
43 lines (40 loc) · 1.13 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
version: "3"
services:
postgres:
container_name: postgres
image: postgres:15.2-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=magnetissimo
networks:
- magnetissimo
volumes:
- "pgdata:/var/lib/postgresql/data"
magnetissimo:
container_name: magnetissimo
image: ghcr.io/sergiotapia/magnetissimo:master
restart: unless-stopped
environment:
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/magnetissimo
# Uncomment this environment variable and replace with your domain
# if you are not using localhost.
# This is to avoid the "We can't find the internet" websocket error.
# Supports top level and subdomains.
# - PHX_HOST=magnetissimo.domain.tld
# Uncomment this environment variable and fill it in with either:
# openssl rand -base64 64
# mix phx.gen.secret
# - SECRET_KEY_BASE=
networks:
- magnetissimo
ports:
- "4000:4000/tcp"
depends_on:
- postgres
networks:
magnetissimo:
volumes:
pgdata:
driver: local