Last active
March 19, 2022 16:25
-
-
Save ricardopadua/acf864ba623e066aa52610c3d4cedb2c to your computer and use it in GitHub Desktop.
alchemist-training
This file contains 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.8' | |
services: | |
livebook: | |
image: 'livebook/livebook:0.5.2' | |
container_name: livebook | |
restart: always | |
ports: | |
- '8080:8080' | |
networks: | |
- "prologic-net" | |
hostname: livebook | |
profiles: ["debug", "dev"] | |
db: | |
image: 'postgres:13.0-alpine' | |
container_name: db | |
restart: always | |
environment: | |
POSTGRES_HOST: db | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: alchemist-training | |
POSTGRES_USER: postgres | |
PGDATA: /tmp | |
ports: | |
- '5432:5432' | |
networks: | |
- "prologic-net" | |
hostname: db | |
profiles: ["debug", "dev"] | |
healthcheck: | |
test: ["CMD-SHELL", "pg_isready -U postgres"] | |
interval: 10s | |
timeout: 5s | |
retries: 5 | |
volumes: | |
- './docker-volumes/postgres/data:/var/lib/postgresql/data' | |
networks: | |
prologic-net: | |
name: prologic-net | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment