| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- version: '3'
- services:
- ohurlshortener-admin:
- image: baratsemet/ohurlshortener-admin:${OH_ADMIN_VERSION}
- container_name: ${OH_ADMIN_CONTAINER_NAME}
- hostname: oh_admin
- volumes:
- - ../docker/docker_config.ini:/app/config.ini
- depends_on:
- postgres:
- condition: service_healthy
- redis:
- condition: service_healthy
- ports:
- - ${OH_ADMIN_PORT}:9092
- networks:
- - ohurlshortener
- ohurlshortener-portal:
- image: baratsemet/ohurlshortener-portal:${OH_PORTAL_VERSION}
- container_name: ${OH_PORTAL_CONTAINER_NAME}
- hostname: oh_portal
- volumes:
- - ../docker/docker_config.ini:/app/config.ini
- depends_on:
- postgres:
- condition: service_healthy
- redis:
- condition: service_healthy
- ports:
- - ${OH_PORTAL_PORT}:9091
- networks:
- - ohurlshortener
- postgres:
- image: postgres:${PG_VERSION}
- container_name: ${PG_CONTAINER_NAME}
- hostname: postgres
- environment:
- - POSTGRES_USER=${PG_SUPER_USER}
- - POSTGRES_PASSWORD=${PG_SUPER_PWD}
- - TZ=PRC
- - PGTZ=PRC
- volumes:
- - ../structure.sql:/docker-entrypoint-initdb.d/001.sql
- - ../docker/container-data/postgresql:/var/lib/postgresql/data
- healthcheck:
- test: [ "CMD", "psql", "-U","${PG_SUPER_USER}","-d","oh_url_shortener" ]
- timeout: 10s
- interval: 3s
- retries: 10
- networks:
- - ohurlshortener
- redis:
- image: redis:${RD_VERSION}
- container_name: ${RD_CONTAINER_NAME}
- hostname: redis
- healthcheck:
- test: [ "CMD", "redis-cli","-p","6379"]
- timeout: 10s
- interval: 3s
- retries: 10
- networks:
- - ohurlshortener
-
- networks:
- ohurlshortener:
- driver: bridge
- name: "network_ohurlshortener"
- driver_opts:
- com.docker.network.enable_ipv6: "true"
|