-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
38 lines (38 loc) · 1.21 KB
/
docker-compose.prod.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
version: '3'
services:
meetyou-nginx:
image: ${REGISTRY_ADDRESS}/meetyou-nginx:${IMAGE_TAG}
restart: always
depends_on:
- meetyou-php-fpm
ports:
- "8080:80"
meetyou-php-fpm:
image: ${REGISTRY_ADDRESS}/meetyou-php-fpm:${IMAGE_TAG}
restart: always
environment:
APP_SECRET: ${MEETYOU_APP_SECRET}
DATABASE_URL: mysql://meetyou:${MEETYOU_DB_PASSWORD}@meetyou-mysql:3306/meetyou
DATABASE_URL_SLAVE_1: ${DATABASE_URL_SLAVE_1}
DATABASE_URL_SLAVE_2: ${DATABASE_URL_SLAVE_2}
meetyou-php-cli:
image: ${REGISTRY_ADDRESS}/meetyou-php-cli:${IMAGE_TAG}
environment:
APP_SECRET: ${MEETYOU_APP_SECRET}
DATABASE_URL: mysql://meetyou:${MEETYOU_DB_PASSWORD}@meetyou-mysql:3306/meetyou
DATABASE_URL_SLAVE_1: ${DATABASE_URL_SLAVE_1}
DATABASE_URL_SLAVE_2: ${DATABASE_URL_SLAVE_2}
meetyou-mysql:
image: ${REGISTRY_ADDRESS}/meetyou-mysql-master:${IMAGE_TAG}
restart: always
volumes:
- meetyou-mysql:/var/lib/mysql
ports:
- "33060:3306"
environment:
MYSQL_DATABASE: meetyou
MYSQL_USER: meetyou
MYSQL_PASSWORD: ${MEETYOU_DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MEETYOU_DB_ROOT_PASSWORD}
volumes:
meetyou-mysql: