Last active
May 24, 2021 21:20
-
-
Save titovanton/62b023905965b025d639020c80f9f1ac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: "3.7" | |
services: | |
api: | |
image: flink_api | |
build: | |
context: ./api | |
dockerfile: Dockerfile | |
user: saleor:www-data | |
command: /app/manage.py runserver 0.0.0.0:8000 | |
restart: always | |
environment: | |
DATABASE_URL: postgres://saleor:saleor@db:5432/saleor | |
DEBUG: 'True' | |
SECRET_KEY: asdf;lkdfgh4398234sdlknb12234 | |
DEFAULT_COUNTRY: DE | |
DEFAULT_CURRENCY: EUR | |
depends_on: | |
- db | |
ports: | |
- 8000:8000 | |
networks: | |
- api | |
- db | |
volumes: | |
- ./api:/app | |
- ./aliases:/home/saleor/aliases | |
dashboard: | |
image: flink_dashboard | |
build: | |
context: ./dashboard | |
dockerfile: Dockerfile | |
restart: always | |
depends_on: | |
- api | |
ports: | |
- '80:80' | |
networks: | |
- api | |
db: | |
image: postgres:12.2-alpine | |
networks: | |
- db | |
restart: always | |
environment: | |
PGDATA: /var/lib/postgresql/data/pgdata | |
POSTGRES_DB: saleor | |
POSTGRES_USER: saleor | |
POSTGRES_PASSWORD: saleor | |
volumes: | |
- ./pgdata:/var/lib/postgresql/data/pgdata | |
adminer: | |
image: adminer | |
restart: always | |
networks: | |
- db | |
ports: | |
- 8080:8080 | |
environment: | |
ADMINER_DEFAULT_SERVER: postgres | |
networks: | |
db: | |
api: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment