41 lines
754 B
YAML
41 lines
754 B
YAML
version: '3'
|
|
services:
|
|
app:
|
|
image: mirego/accent:v1.19.12
|
|
depends_on:
|
|
- db
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres@db:5432/accent_development
|
|
restart: "unless-stopped"
|
|
networks:
|
|
default:
|
|
ipv4_address: $NET.100
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '1'
|
|
memory: 200M
|
|
|
|
db:
|
|
image: postgres:10.3
|
|
environment:
|
|
- POSTGRES_DB=accent_development
|
|
volumes:
|
|
- $DATA_DIR/db:/var/lib/postgresql/data
|
|
restart: "unless-stopped"
|
|
networks:
|
|
default:
|
|
ipv4_address: $NET.101
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '1'
|
|
memory: 300M
|
|
|
|
|
|
networks:
|
|
default:
|
|
ipam:
|
|
config:
|
|
- subnet: $NET.0/24
|