-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.local.yml
executable file
·44 lines (40 loc) · 1.01 KB
/
docker-compose.local.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
version: '3.9'
services:
# =app
app:
image: "sindriainc/openjdk:${OPENJDK_TAG}-${OPENJDK_VERSION}"
container_name: "${APP_NAME}"
#user: sindria
command: /bin/bash -c "rmdir /var/www/app; ln -s /home/sindria/Projects/Sindria/giovannibrebbia/ing-sw-2020-balossini-barelli-brebbia/src /var/www/app; tail -f /dev/null"
volumes:
#- "${CODE_PATH}:${APP_CODE_PATH}"
- "xdev-sindria_projects:/home/sindria/Projects"
hostname: "${APP_NAME}.local"
#ports:
# - "8080:80"
networks:
default:
ipv4_address: "${APP_IP_ADDRESS}"
aliases:
- "${APP_NAME}.local"
#networks:
# vpc_<app-name>:
# ipv4_address: "${APP_IP_ADDRESS}"
# aliases:
# - "${APP_NAME}.local"
# =networks
networks:
default:
name: "vpc_${APP_NAME}"
driver: bridge
ipam:
config:
- subnet: ${NETWORK_SUBNET}
# =networks
#networks:
# vpc_tca-ingress:
# external: true
# =volumes
volumes:
xdev-sindria_projects:
external: true