-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathdocker-compose_dev.yml
executable file
·66 lines (61 loc) · 1.82 KB
/
docker-compose_dev.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# https://docs.docker.com/compose/yml/
# Each service defined in docker-compose.yml must specify exactly one of
# image or build. Other keys are optional, and are analogous to their
# docker run command-line counterparts.
#
# As with docker run, options specified in the Dockerfile (e.g., CMD,
# EXPOSE, VOLUME, ENV) are respected by default - you don't need to
# specify them again in docker-compose.yml.
#
version: '3.7'
services:
pfcon:
image: localhost:5000/fnndsc/pfcon:dev
build:
context: ..
target: dev
args:
ENVIRONMENT: local
stdin_open: true # docker run -i
tty: true # docker run -t
# We need to mount a physical dir in the HOST onto the key store in pfcon. This dir
# is given by the STOREBASE env variable substitution. The keystore can be specified
# by the --storeBase flag during development.
environment:
- APPLICATION_MODE=development
volumes:
- ${STOREBASE:?}:/var/local/storeBase:z
- ../pfcon:/app/pfcon:z
- ../tests:/app/tests:z
ports:
- "30006:5005"
depends_on:
- pman
networks:
- remote
labels:
name: "pfcon"
role: "pfcon service"
pman:
image: ${PMANREPO:?}/pman
# Since pman spins off containers of its own it needs to mount storeBase dir (where
# pfcon shares the data) into the spawned container. This directory is passed in the
# STOREBASE env variable.
environment:
- STORAGE_TYPE=host
- STOREBASE
- SECRET_KEY="w1kxu^l=@pnsf!5piqz6!!5kdcdpo79y6jebbp+2244yjm*#+k"
- CONTAINER_ENV=swarm
volumes:
- /var/run/docker.sock:/var/run/docker.sock:z
deploy:
placement:
constraints:
- "node.role==manager"
networks:
- remote
labels:
name: "pman"
role: "pman service"
networks:
remote: