-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (32 loc) · 882 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (32 loc) · 882 Bytes
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
version: '3'
services:
liquidvoting:
image: ghcr.io/liquidvotingio/api:latest
entrypoint: ["/tmp/hello-world-entrypoint.sh"]
# The entrypoint override above wipes out the CMD
# on the Dockerfile, so we need to declare it
# again here (https://github.com/docker/compose/issues/3140)
command: ["/opt/app/bin/liquid_voting", "start"]
ports:
- 4000:4000
volumes:
# Makes our entrypoint script available to the container
# under /code/vendor
- ./scripts:/tmp
environment:
- DB_HOST=pg
- DB_POOL_SIZE=10
- DB_NAME=postgres
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- SECRET_KEY_BASE=super_secret_string
links:
- pg
pg:
image: postgres
volumes:
- pg-data:/var/lib/postgresql/data
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
pg-data: {}