This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (63 loc) · 1.33 KB
/
docker-compose.yml
File metadata and controls
68 lines (63 loc) · 1.33 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
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
67
68
version : "3"
services:
x-api:
build:
context: .
dockerfile: Api.Dockerfile
container_name: x-api
depends_on:
- x-pg
volumes:
- .:/var/www/html
restart: always
ports:
- "1000:80"
environment:
APP_NAME: "API boilerplate"
networks:
x-network:
ipv4_address: 100.10.1.1
extra_hosts:
- host.docker.internal:host-gateway
x-pg:
image: postgres:latest
container_name: x-pg
volumes:
- x-pg-disk:/var/lib/postgres
restart: always
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: testing
networks:
x-network:
ipv4_address: 100.10.1.2
x-q:
build:
context: .
dockerfile: QueueListener.Dockerfile
container_name: x-q
depends_on:
- x-api
volumes:
- .:/var/www/html
restart: unless-stopped
networks:
x-network:
ipv4_address: 100.10.1.3
x-mailpit:
image: 'axllent/mailpit:latest'
container_name: x-mailpit
restart: always
networks:
x-network:
ipv4_address: 100.10.1.4
# On-disk storage of DB data, when containers are stopped
volumes:
x-pg-disk: {}
# Local network for services running using this docker-compose config
networks:
x-network:
ipam:
driver: default
config:
- subnet: 100.10.0.0/16