-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
33 lines (31 loc) · 902 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: '3'
services:
cloudcsv-db:
image: postgres:9.6
restart: always
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DATABASE_NAME}
volumes:
- ./etc/init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
# - ./postgresdata:/var/lib/postgresql/data #Enable this if you want to persist data
networks:
- traefik-network
cloudcsv-api:
image: php:7.2-apache
build: .
depends_on:
- cloudcsv-db
ports:
- ${API_EXPOSED_PORT}:80
labels:
- "traefik.http.routers.cloudcsv-api.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.cloudcsv-api.entrypoints=websecure"
- "traefik.http.routers.cloudcsv-api.tls.certresolver=myresolver"
networks:
- traefik-network
networks:
traefik-network:
name: traefik_proxynet
external: true