cnc-service/docker-compose.yml
Torma Kristóf 446cb6f611
Some checks reported errors
continuous-integration/drone/push Build was killed
add psycopg2
2020-08-06 20:33:06 +02:00

51 lines
1.2 KiB
YAML

version: '3.4'
networks:
cnc:
external: false
services:
postgres:
image: postgres:12
restart: always
environment:
- POSTGRES_USER=cnc-service
- POSTGRES_PASSWORD=cnc-service-supersecret
- POSTGRES_DB=cnc-service
networks:
- cnc
volumes:
- ./postres-volume:/var/lib/postgresql/data
activemq:
image: registry.kmlabz.com/birbnetes/activemq-artemis
restart: always
networks:
- cnc
volumes:
- ./artemis-volume:/var/lib/artemis-instance
cnc-service:
image: registry.kmlabz.com/birbnetes/activemq-artemis
restart: always
depends_on:
- activemq
- postgres
environment:
SENTRY_DSN: https://8774ab5831814316a6aa33d07f94281c@sentry.kmlabz.com/8
RELEASE_ID: compose
CNC_SERVICE_RELEASEMODE: dev
CNC_POSTGRES_HOSTNAME: postgres
CNC_POSTGRES_USERNAME: cnc-service
CNC_POSTGRES_PASSWORD: cnc-service-supersecret
CNC_POSTGRES_DB: cnc-service
CNC_MQTT_HOSTNAME: activemq
CNC_MQTT_PORT: "1883"
CNC_MQTT_USERNAME: artemis
CNC_MQTT_PASSWORD: artemis
CNC_MQTT_STATUS_TOPIC: status
CNC_MQTT_COMMAND_TOPIC: command
networks:
- cnc
ports:
- "127.0.0.1:8080:8080"