Some checks failed
continuous-integration/drone Build is failing
Signed-off-by: Lucas BEE <pouulet@gmail.com>
42 lines
699 B
YAML
42 lines
699 B
YAML
version: "3"
|
|
|
|
networks:
|
|
canapeapp:
|
|
external: false
|
|
|
|
services:
|
|
database:
|
|
image: postgres:13.8
|
|
container_name: canapeapp_database
|
|
restart: always
|
|
networks:
|
|
- canapeapp
|
|
volumes:
|
|
- db-volume:/var/lib/postgresql/data/pgdata
|
|
ports:
|
|
- 127.0.0.1:5432:5432
|
|
env_file:
|
|
- ./db.env
|
|
|
|
app:
|
|
image: odwrtw/canapeapp:latest
|
|
container_name: canapeapp
|
|
restart: always
|
|
depends_on:
|
|
- database
|
|
networks:
|
|
- canapeapp
|
|
ports:
|
|
- 127.0.0.1:3000:3000
|
|
volumes:
|
|
- ../config.yml:/etc/canapeapp.yml:ro
|
|
- img-volume:/opt/build/public/img
|
|
links:
|
|
- database
|
|
env_file:
|
|
- ./app.env
|
|
|
|
volumes:
|
|
img-volume:
|
|
db-volume:
|