-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
49 lines (45 loc) · 1.23 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: '2'
# networks:
# default:
# external:
# name: nginx-proxy
services:
# nginx-proxy:
# image: jwilder/nginx-proxy
# container_name: nginx-proxy
# ports:
# - "80:80"
# volumes:
# - ../volumes/certs/:/etc/nginx/certs:ro # Cerificares for all Required Domains must be in this Directory
# - /etc/nginx/vhost.d
# - /usr/share/nginx/html
# - /var/run/docker.sock:/tmp/docker.sock:ro
postgres:
image: postgres:9.6
container_name: postgres
environment:
POSTGRES_DB: "${DB_NAME}"
POSTGRES_USER: "${DB_USERNAME}"
POSTGRES_PASSWORD: "${DB_PASSWORD}"
volumes:
- ./volumes/postgres:/var/lib/postgresql/data
backend:
image: "${DOCKER_IMAGE}:${DOCKER_TAG}"
links:
- postgres:postgres
container_name: backend
environment:
# VIRTUAL_HOST: api.dev.cncf.ci
# VIRTUAL_PORT: 80
# VIRTUAL_PROTO: http
GITLAB_API: "${GITLAB_API}"
GITLAB_TOKEN: "${GITLAB_TOKEN}"
GITLAB_CI_YML: "${GITLAB_CI_YML}"
DB_HOST: "postgres"
DB_NAME: "${DB_NAME}"
DB_USERNAME: "${DB_USERNAME}"
DB_PASSWORD: "${DB_PASSWORD}"
DB_POOL_SIZE: "${DB_POOL_SIZE}"
PORT: 4000
ports:
- "${PORT}:4000"