Docker Compose: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
<source lang="properties"> | |||
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=dep | |||
- 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_JPA_DIALECT=org.hibernate.dialect.PostgreSQLDialect | |||
- CHORKE_JPA_SHOWSQL=true | |||
- CHORKE_GQL_ENABLED=true | |||
- CHORKE_GQL_BROWSER=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 | |||
</source> | |||
==References== | ==References== | ||
{| | {| |
Revision as of 10:20, 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=dep
- 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_JPA_DIALECT=org.hibernate.dialect.PostgreSQLDialect
- CHORKE_JPA_SHOWSQL=true
- CHORKE_GQL_ENABLED=true
- CHORKE_GQL_BROWSER=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