-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml.example
167 lines (152 loc) · 3.54 KB
/
docker-compose.dev.yml.example
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
version: "3.9"
services:
# ********** BACKEND SERVICES ********** #
sd-postgres:
container_name: sd-postgres
image: postgres:14.0-alpine
restart: unless-stopped
expose:
- 5432
ports:
- 5432:5432
environment:
- TZ=Europe/London
env_file: ./postgres/.env
volumes:
- sd_postgres_data:/var/lib/postgresql/data
networks:
- app-network
sd-backend:
depends_on:
- sd-postgres
container_name: sd-backend
image: sd-backend
restart: unless-stopped
build:
context: ./backend
dockerfile: ./Dockerfile.dev
env_file: ./backend/.env
volumes:
- ./backend/:/app
- sd_alembic_backend_data:/app/src/alembic/versions
expose:
- 8080
ports:
- 8080:8080
networks:
- app-network
sd-pseudotie:
depends_on:
- sd-postgres
container_name: sd-pseudotie
image: sd-pseudotie
restart: unless-stopped
build:
context: ./pseudotie
dockerfile: ./Dockerfile.dev
env_file: ./pseudotie/.env
volumes:
- ./pseudotie:/app
- sd_alembic_pseudotie_data:/app/src/alembic/versions
ports:
- "8081:8081"
networks:
- app-network
# ********** FRONTEND SERVICES ********** #
sd-frontend:
container_name: sd-frontend
image: sd-frontend
restart: unless-stopped
build:
context: ./frontend
dockerfile: ./Dockerfile
environment:
NODE_ENV: development
volumes:
- ./frontend/:/app
expose:
- 3000
ports:
- 3000:3000
command: ["yarn", "start"]
networks:
- app-network
sd-frontend-sb:
container_name: sd-frontend-sb
image: sd-frontend-sb
restart: unless-stopped
build:
context: ./frontend
dockerfile: ./Dockerfile
environment:
NODE_ENV: development
volumes:
- ./frontend/:/app
ports:
- 6006:6006
command: ["yarn", "storybook"]
networks:
- app-network
# ********** INTERMEDIATE SERVICES ********** #
sd-nginx:
depends_on:
- sd-frontend
- sd-backend
- sd-wordpress
container_name: sd-nginx-dev
env_file: ./nginx/.env
image: sd-nginx-dev
build:
context: .
dockerfile: ./Dockerfile.dev
restart: unless-stopped
volumes:
- ./media:/media
- sd_wordpress:/var/www/html
ports:
- 80:80
- 443:443
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- app-network
- wp-network
# ********** LANDING PAGE ********** #
sd-mysql:
container_name: sd-mysql
image: mysql:8.0
restart: unless-stopped
environment:
- MYSQL_DATABASE=wordpress
env_file: ./mysql/.env
command: --default-authentication-plugin=mysql_native_password
volumes:
- sd_mysql_data:/var/lib/mysql
networks:
- wp-network
ports:
- 3306:3306
sd-wordpress:
depends_on:
- sd-mysql
container_name: sd-wordpress
image: wordpress:5.8.2-fpm-alpine
restart: unless-stopped
environment:
- WORDPRESS_DB_HOST=sd-mysql:3306
env_file: ./wordpress/.env
volumes:
- sd_wordpress:/var/www/html
networks:
- wp-network
volumes:
sd_postgres_data:
sd_wordpress:
sd_mysql_data:
sd_alembic_backend_data:
sd_alembic_pseudotie_data:
networks:
app-network:
driver: bridge
wp-network:
driver: bridge