forked from codeamp/circuit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (50 loc) · 1.22 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
49
50
version: "3"
services:
registry:
container_name: circuit_registry
image: registry:2
ports:
- "${DOCKER_COMPOSE_REGISTRY_PORT}:5000"
networks:
- codeamp
redis:
container_name: circuit_redis
image: redis
ports:
- "${DOCKER_COMPOSE_REDIS_PORT}:6379"
networks:
- codeamp
postgres:
container_name: circuit_postgres
image: postgres
ports:
- "${DOCKER_COMPOSE_POSTGRES_PORT}:5432"
volumes:
- ./bootstrap/postgres:/docker-entrypoint-initdb.d
- ./bootstrap/postgres/data:/var/lib/postgresql/data
networks:
- codeamp
circuit:
image: circuit
command: sh -c "/usr/local/bin/dex serve configs/dex.yml & reflex -c reflex.conf"
build:
context: .
dockerfile: Dockerfile
environment:
DOCKER_COMPOSE_POSTGRES_PORT: ${DOCKER_COMPOSE_POSTGRES_PORT}
CODEAMP_LOG_FORMAT: "standard"
ports:
- "${DOCKER_COMPOSE_CIRCUIT_PORT}:3011"
- "${DOCKER_COMPOSE_DEX_PORT}:5556"
volumes:
- .:/go/src/github.com/codeamp/circuit
- /var/run/docker.sock:/var/run/docker.sock
- ./:/etc/dex
depends_on:
- postgres
- redis
networks:
- codeamp
networks:
codeamp:
driver: bridge