-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 1.43 KB
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (34 loc) · 1.43 KB
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
version: '3.8'
services:
wordpress-ubuntu:
build:
context: .
dockerfile: Dockerfile.ubuntu
container_name: wordpress-ubuntu-test
ports:
- "8880:80" # Map host port 8880 to container port 80
- "8767:22" # Optional: Map host port 8767 to container port 22 for SSH debugging
cap_add:
- SYS_ADMIN # May be needed if service management within container is tricky without full systemd
# volumes: # Optional: Mount local Ansible files for easier development/iteration
# - ./ansible_role_wordpress:/opt/ansible/ansible_role_wordpress:ro
# - ./playbook.yml:/opt/ansible/playbook.yml:ro
# - ./entrypoint.sh:/usr/local/bin/entrypoint.sh:ro
tty: true # Keeps the container running if entrypoint finishes and no foreground process
stdin_open: true # Similar to tty:true
wordpress-rocky:
build:
context: .
dockerfile: Dockerfile.rocky
container_name: wordpress-rocky-test
ports:
- "8881:80" # Map host port 8881 to container port 80
- "8768:22" # Optional: Map host port 8768 to container port 22 for SSH debugging
cap_add:
- SYS_ADMIN # May be needed if service management within container is tricky
# volumes: # Optional
# - ./ansible_role_wordpress:/opt/ansible/ansible_role_wordpress:ro
# - ./playbook.yml:/opt/ansible/playbook.yml:ro
# - ./entrypoint.sh:/usr/local/bin/entrypoint.sh:ro
tty: true
stdin_open: true