Skip to content

Commit

Permalink
compose: add container environment file
Browse files Browse the repository at this point in the history
CONTAINER=yes is now set when we are in container.
  • Loading branch information
pbrezina committed Mar 15, 2022
1 parent e8262f7 commit 1b16ec9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ services:
restart: always
image: ${REGISTRY}/ci-dns:latest
container_name: dns
env_file: ./env.containers
volumes:
- ./data/configs/dnsmasq.conf:/etc/dnsmasq.conf
cap_add:
Expand All @@ -16,6 +17,7 @@ services:
container_name: ipa
hostname: master.ipa.test
dns: 172.16.100.2
env_file: ./env.containers
volumes:
- ./shared:/data/shared:rw
cap_add:
Expand All @@ -32,6 +34,7 @@ services:
container_name: ldap
hostname: master.ldap.test
dns: 172.16.100.2
env_file: ./env.containers
volumes:
- ./shared:/data/shared:rw
cap_add:
Expand All @@ -45,6 +48,7 @@ services:
container_name: samba
hostname: dc.samba.test
dns: 172.16.100.2
env_file: ./env.containers
volumes:
- ./shared:/data/shared:rw
cap_add:
Expand All @@ -61,6 +65,7 @@ services:
container_name: client
hostname: client.test
dns: 172.16.100.2
env_file: ./env.containers
volumes:
- ./shared:/data/shared:rw
cap_add:
Expand Down
2 changes: 2 additions & 0 deletions env.containers
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Environment variables set in all started containers
CONTAINER=yes

0 comments on commit 1b16ec9

Please sign in to comment.