-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-example.yml
40 lines (37 loc) · 1.17 KB
/
docker-compose-example.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
# Note you cannot start both these services at the same time.
# Run:
# docker-compose up install
# Then after this has completed, run:
# docker-compose up -d run
version: '2'
services:
# Run: the main service
run:
build: .
container_name: openvpnals
ports:
- "443:443"
volumes:
- $HOME/docker-volumes/openvpn-als/db:/opt/openvpn-als/adito/db
- $HOME/docker-volumes/openvpn-als/logs:/opt/openvpn-als/adito/logs
- conf:/opt/openvpn-als/adito/conf
image: local/openvpn-als
restart: unless-stopped
command: /bin/sh -c 'cd adito && ant start-using-java'
# Install: Run once to install/reconfigure OpenVpn ALS
install:
build: .
container_name: openvpnals-install
ports:
- "28080:28080"
volumes:
- $HOME/docker-volumes/openvpn-als/db:/opt/openvpn-als/adito/db
- $HOME/docker-volumes/openvpn-als/logs:/opt/openvpn-als/adito/logs
- conf:/opt/openvpn-als/adito/conf
image: local/openvpn-als
restart: never
command: ant install
# docker compose will look after the volume. Location: /var/lib/docker/volumes/dockeropenvpnals_conf/_data
# This should survive a docker-compose down.
volumes:
conf: