Docker Compose: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
- redis | - redis | ||
environment: | environment: | ||
- SPRING_PROFILES_ACTIVE= | - SPRING_PROFILES_ACTIVE=docker | ||
- CHORKE_DS_POOLNAME=java:jboss/datasources/PG_http_spider_devDS | - CHORKE_DS_POOLNAME=java:jboss/datasources/PG_http_spider_devDS | ||
- CHORKE_DS_JDBC_URL=jdbc:postgresql://db:5432/academia | - CHORKE_DS_JDBC_URL=jdbc:postgresql://db:5432/academia |
Revision as of 10:25, 31 January 2021
version: "3.9"
services:
web:
build: .
container_name: crawler
labels:
org.chorke.academia.http.spider: "Finoloyg Web Crawler"
depends_on:
- db
- redis
environment:
- SPRING_PROFILES_ACTIVE=docker
- CHORKE_DS_POOLNAME=java:jboss/datasources/PG_http_spider_devDS
- CHORKE_DS_JDBC_URL=jdbc:postgresql://db:5432/academia
- CHORKE_DS_DBDRIVER=org.postgresql.Driver
- CHORKE_DS_DATABASE=academia
- CHORKE_DS_USERNAME=academia
- CHORKE_DS_PASSWORD=academia
- CHORKE_DS_SQLQUERY=SELECT 1
- CHORKE_H2_WEBADMIN=false
- CHORKE_H2_ALLOWALL=false
- CHORKE_GQL_BROWSER=true
- CHORKE_GQL_ENABLED=true
- CHORKE_JPA_DIALECT=org.hibernate.dialect.PostgreSQLDialect
- CHORKE_JPA_SHOWSQL=true
- CHORKE_LIQ_CONTEXT=dev
redis:
container_name: redis
image: redis
networks:
default:
aliases:
- redis.academia.chorke.org
db:
image: 'postgres:13.1-alpine'
networks:
default:
aliases:
- db.academia.chorke.org
networks:
default:
ipam:
config:
- subnet: 10.20.21.0/24