Merge branch 'develop' of akkoma.dev:AkkomaGang/akkoma into develop
[akkoma] / docker-compose.yml
1 version: "3.7"
2
3 services:
4 db:
5 image: akkoma-db:latest
6 build: ./docker-resources/database
7 restart: unless-stopped
8 user: ${DOCKER_USER}
9 environment: {
10 # This might seem insecure but is usually not a problem.
11 # You should leave this at the "akkoma" default.
12 # The DB is only reachable by containers in the same docker network,
13 # and is not exposed to the open internet.
14 #
15 # If you do change this, remember to update "config.exs".
16 POSTGRES_DB: akkoma,
17 POSTGRES_USER: akkoma,
18 POSTGRES_PASSWORD: akkoma,
19 }
20 env_file:
21 - .env
22 volumes:
23 - type: bind
24 source: ./pgdata
25 target: /var/lib/postgresql/data
26
27 akkoma:
28 image: akkoma:latest
29 build: .
30 restart: unless-stopped
31 env_file:
32 - .env
33 links:
34 - db
35 ports: [
36 # Uncomment/Change port mappings below as needed.
37 # The left side is your host machine, the right one is the akkoma container.
38 # You can prefix the left side with an ip.
39
40 # Webserver (for reverse-proxies outside of docker)
41 # If you use a dockerized proxy, you can leave this commented
42 # and use a container link instead.
43 "127.0.0.1:4000:4000",
44 ]
45 volumes:
46 - .:/opt/akkoma
47
48 # Uncomment the following if you want to use a reverse proxy
49 #proxy:
50 # image: caddy:2-alpine
51 # restart: unless-stopped
52 # links:
53 # - akkoma
54 # ports: [
55 # "443:443",
56 # "80:80"
57 # ]
58 # volumes:
59 # - ./docker-resources/Caddyfile:/etc/caddy/Caddyfile
60 # - ./caddy-data:/data
61 # - ./caddy-config:/config