chore: split compose files/rename ssl conf

This commit is contained in:
Alessandro Pezzè 2021-08-30 18:12:19 +02:00
parent 655ff4f955
commit 4f127e4110
4 changed files with 14 additions and 7 deletions

View file

@ -4,7 +4,7 @@ services:
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_USER: "${POSTGRES_USER}"
app:
env_file: .env
@ -22,10 +22,10 @@ services:
command: sh -c 'cp -a /app/static/. /transfer/ && tail -f /etc/passwd'
volumes:
- graphiql:/transfer
depends_on:
depends_on:
- graphql-engine
volumes:
volumes:
graphiql:
# docker-compose -f docker-compose.yml -f Resources/compose/docker-compose-graphql.yml up
# docker-compose -f docker-compose.yml -f Resources/compose/docker-compose-prod-graphql.yml up -d

9
docker-compose-dev.yml Normal file
View file

@ -0,0 +1,9 @@
version: '2.4'
services:
app:
build:
context: .
dockerfile: ./Resources/docker/app/Dockerfile
# # docker-compose -f docker-compose.yml -f Resources/compose/docker-compose-dev.yml up -d

View file

@ -17,9 +17,7 @@ services:
restart: always
app:
build:
context: .
dockerfile: ./Resources/docker/app/Dockerfile
image: pokeapi/pokeapi:master
user: ${RUN_AS:-pokeapi}
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-pokemon}